#include<stdio.h>
#include<string>
#include<windows.h>
int main()
{
FILE *fp;
char c;int word=0,line=0,str=0,zm=0,a;
fp=fopen("wenjian.txt","r");
	
if( fp== NULL)
	{
   printf("error\n");
   return 0;
}
scanf("wc.exe %d",&a);
   c = fgetc(fp);
   while(c!=EOF)
   	{
   str++;
   if((c>='a')&&(c<='z')or(c>='A')&&(c<='Z'))
   zm++;
   else if(c=='\n')
   line++;
   else
   word++;                                                                                                                                                                                                                                               
   
  c = fgetc(fp); 
}
if(a==1)
printf("%dַ\n",str);
if(a==2)
printf("%d\n",word);
if(a==3)
printf("%d\n",line);
return 0;
}
